﻿<phone:PhoneApplicationPage
    x:Class="ScreenRotateSample.Views.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"            
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar BackgroundColor="#FF262626" ForegroundColor="#FFB0B0B0">
            <shell:ApplicationBar.Buttons>
                <cal:AppBarButton 
                    IsEnabled="True"
                    x:Name="abbReport"
                    IconUri="/Assets/AppBar/relatorioicon.png" 
                    Text="relatório"
                    Message ="Report"/>
            </shell:ApplicationBar.Buttons>
            <shell:ApplicationBar.MenuItems>
                <cal:AppBarMenuItem
                    IsEnabled="True"
                    x:Name="abbItem1"
                    Text="Item1"
                    Message="Item1"/>
                <cal:AppBarMenuItem
                    IsEnabled="True"
                    x:Name="abbItem2"
                    Text="Item2"
                    Message="Item2"/>
                <cal:AppBarMenuItem
                    IsEnabled="True"
                    x:Name="abbItem3"
                    Text="Item3"
                    Message="Item3"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>    
   
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <phone:Pivot Title="WPAPP" x:Name="Items" 
                     SelectedItem="{Binding ActiveItem, Mode=TwoWay}">
            <phone:Pivot.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DisplayName}" />
                </DataTemplate>
            </phone:Pivot.HeaderTemplate>
        </phone:Pivot>
    </Grid>
    
</phone:PhoneApplicationPage>